<?php
/**
 * Api路由
 */

use think\facade\Route;

Route::group('api', function() {
    //MISS路由定义
    Route::miss('api.Miss/index');
    // Route::rule('test/index', 'api.test/index', 'get');
    // Route::rule('6552d8b135709', 'api.test/test2', 'post');
    // Route::rule('test3', 'api.test/test3', 'post');
    // Route::rule('test4', 'api.test/test4', 'post');
    // Route::rule('test5', 'api.test/test5', 'get');//抓取科目分类
    // Route::rule('test7', 'api.test/test7', 'get');//抓取学术学位

    Route::rule('63aceeb60d784', 'api.user/user_login', 'post');//用户登录
    //小程序用户端
    Route::rule('login', 'api.JxUser/login', 'post');//小程序用户登录 
    Route::rule('getPhone', 'api.Wechat/getPhone', 'post');//获取小程序用户手机号
    Route::rule('getPhoneCode', 'api.JxUser/getPhoneCode', 'POST');//获取短信验证码
    Route::rule('updateUser', 'api.JxUser/updateUser', 'POST');//修改个人用户信息
    Route::rule('getUserInfo', 'api.JxUser/getUserInfo', 'POST');//获取个人用户信息
    Route::rule('userBindPhone', 'api.JxUser/userBindPhone', 'POST');//用户绑定手机号
    Route::rule('userNotceList', 'api.JxUser/userNotceList', 'POST');//获取用户通知列表
    Route::rule('upload', 'api.JxUser/upload', 'POST');//上传接口
    Route::rule('becomeCoach', 'api.JxUser/becomeCoach', 'POST');//成为教练
    Route::rule('getCertificateList', 'api.JxUser/getCertificateList', 'POST');//获取证件名称
    Route::rule('handleCertificate', 'api.JxUser/handleCertificate', 'POST');//办理证件
    Route::rule('homeBannerList', 'api.JxUser/homeBannerList', 'POST');//首页轮播图列表
    Route::rule('becomeStudent', 'api.JxUser/becomeStudent', 'POST');//成为学生审核
    Route::rule('studentDetail', 'api.JxUser/studentDetail', 'POST');//学生审核详情

    //************************平台端****************************************/
    Route::rule('adminLogin', 'api.JxAdmin/login', 'POST');//管理员用户级登录
    Route::rule('updateAdmin', 'api.JxAdmin/updateAdmin', 'POST');//管理员用户级登录

    Route::rule('addCertificate', 'api.JxAdmin/addCertificate', 'POST');//添加或者修改证件
    Route::rule('certificateList', 'api.JxAdmin/certificateList', 'POST');//证件列表
    Route::rule('certificateDetail', 'api.JxAdmin/certificateDetail', 'POST');//证件详情
    Route::rule('certificateDel', 'api.JxAdmin/certificateDel', 'POST');//删除证件
    Route::rule('userCertificateList', 'api.JxAdmin/userCertificateList', 'POST');//办证大厅，用户办理证件
    Route::rule('addBanner', 'api.JxAdmin/addBanner', 'POST');//添加或者修改轮播图
    Route::rule('bannerList', 'api.JxAdmin/bannerList', 'POST');//轮播图列表
    Route::rule('bannerDetail', 'api.JxAdmin/bannerDetail', 'POST');//轮播图详情
    Route::rule('bannerDel', 'api.JxAdmin/bannerDel', 'POST');//删除轮播图
    Route::rule('studentAuthenticationList', 'api.JxAdmin/studentAuthenticationList', 'POST');//学生审核列表
    Route::rule('studentAuthenticationDetail', 'api.JxAdmin/studentAuthenticationDetail', 'POST');//学生审核列表
    Route::rule('studentAuthenticationPass', 'api.JxAdmin/studentAuthenticationPass', 'POST');//学生审核通过或者拒绝
    Route::rule('setCoachAgreement', 'api.JxAdmin/setCoachAgreement', 'POST');//设置教练服务协议
    Route::rule('getCoachAgreement', 'api.JxAdmin/getCoachAgreement', 'POST');//获取教练服务协议
    Route::rule('dreamCoachRecordList', 'api.JxAdmin/dreamCoachRecordList', 'POST');//想成为教练列表
    Route::rule('schoolList', 'api.JxAdmin/schoolList', 'POST');//驾校列表
    Route::rule('addSchool', 'api.JxAdmin/addSchool', 'POST');//添加驾校
    Route::rule('schoolDetail', 'api.JxAdmin/schoolDetail', 'POST');//驾校详情
    Route::rule('schoolDel', 'api.JxAdmin/schoolDel', 'POST');//删除驾校
    Route::rule('changeCoachAmount', 'api.JxAdmin/changeCoachAmount', 'POST');//切换教练费用
    Route::rule('setChangeCoachAmount', 'api.JxAdmin/setChangeCoachAmount', 'POST');//设置教练费用

    //公告管理
    Route::rule('addProclamation', 'api.JxAdmin/addProclamation', 'POST');//添加或者修改公告
    Route::rule('proclamationList', 'api.JxAdmin/proclamationList', 'POST');//公告列表
    Route::rule('proclamationDetail', 'api.JxAdmin/proclamationDetail', 'POST');//公告详情
    Route::rule('proclamationDel', 'api.JxAdmin/proclamationDel', 'POST');//删除公告
    //公告管理end

    //驾校场地管理
    Route::rule('schoolStateList', 'api.JxAdmin/schoolStateList', 'POST');//驾校场地列表
    Route::rule('addSchoolState', 'api.JxAdmin/addSchoolState', 'POST');//添加驾校场地
    Route::rule('schoolStateDetail', 'api.JxAdmin/schoolStateDetail', 'POST');//驾校场地详情
    Route::rule('schoolStateDel', 'api.JxAdmin/schoolStateDel', 'POST');//删除驾校场地
    //驾校场地管理end
    //教练管理
     Route::rule('noPassCoachList', 'api.JxAdmin/noPassCoachList', 'POST');//教练未审核列表
     Route::rule('CoachDetail', 'api.JxAdmin/CoachDetail', 'POST');//教练未审核列表
     Route::rule('setCoachStatus', 'api.JxAdmin/setCoachStatus', 'POST');//通过或者驳回教练审核
    //教练管理end
    Route::rule('setPhoneCustomer', 'api.JxAdmin/setPhoneCustomer', 'POST');//设置电话客服
    Route::rule('setSystemRebate', 'api.JxAdmin/setSystemRebate', 'POST');//设置代理返佣比例
    Route::rule('getPhoneCustomer', 'api.JxAdmin/getPhoneCustomer', 'POST');//获取电话客服
    Route::rule('getSystemRebate', 'api.JxAdmin/getSystemRebate', 'POST');//获取代理返佣金额
    Route::rule('setCoupon', 'api.JxAdminCoupon/setCoupon', 'POST');//设置优惠券
    Route::rule('getCoupon', 'api.JxAdminCoupon/getCoupon', 'POST');//获取优惠券
    //二手车
    Route::rule('setReleaseCarPrice', 'api.JxAdminCar/setReleaseCarPrice', 'POST');//设置优惠券
    Route::rule('getReleaseCarPrice', 'api.JxAdminCar/getReleaseCarPrice', 'POST');//获取优惠券
    Route::rule('addCarBrand', 'api.JxAdminCar/addCarBrand', 'POST');//添加品牌
    Route::rule('carBrandList', 'api.JxAdminCar/carBrandList', 'POST');//获取优惠券
    Route::rule('cardBrandDetail', 'api.JxAdminCar/cardBrandDetail', 'POST');//设置优惠券
    Route::rule('carBrandDel', 'api.JxAdminCar/carBrandDel', 'POST');//获取优惠券
    Route::rule('carList', 'api.JxAdminCar/carList', 'POST');//获取优惠券
    Route::rule('AdminCarDetail', 'api.JxAdminCar/AdminCarDetail', 'POST');//后台二手车详情
    Route::rule('CarDel', 'api.JxAdminCar/CarDel', 'POST');//后台二手车详情
    //二手车end
    //班型管理
    Route::rule('classList', 'api.JxAdminClass/classList', 'POST');//班型列表
    Route::rule('addClass', 'api.JxAdminClass/addClass', 'POST');//添加班型
    Route::rule('classDetail', 'api.JxAdminClass/classDetail', 'POST');//班型详情
    Route::rule('classDel', 'api.JxAdminClass/classDel', 'POST');//删除班型
    Route::rule('setDownClass', 'api.JxAdminClass/setDownClass', 'POST');//下架班型

    Route::rule('getOverduePrice', 'api.JxAdminClass/getOverduePrice', 'POST');//获取逾期
    Route::rule('setOverduePrice', 'api.JxAdminClass/setOverduePrice', 'POST');//设置逾期金额
    Route::rule('setAccompanyRebate', 'api.JxAdminClass/setAccompanyRebate', 'POST');//设置陪练费用
    Route::rule('getAccompanyPrice', 'api.JxAdminClass/getAccompanyPrice', 'POST');//获取陪练费用信息

    Route::rule('timePartList', 'api.JxAdminClass/timePartList', 'POST');//时间段管理
    Route::rule('addTimePart', 'api.JxAdminClass/addTimePart', 'POST');//添加时间段
    Route::rule('TimePartDetail', 'api.JxAdminClass/TimePartDetail', 'POST');//时间段详情
    Route::rule('TimePartDel', 'api.JxAdminClass/TimePartDel', 'POST');//删除时间段
    //版型管理end
    //用户管理
    Route::rule('usersList', 'api.JxAdminUser/usersList', 'POST');//用户列表
    Route::rule('getAdminUserInfo', 'api.JxAdminUser/getAdminUserInfo', 'POST');//添加驾校场地
    Route::rule('setAgent', 'api.JxAdminUser/setAgent', 'POST');//设为代理
    Route::rule('setUserStatus', 'api.JxAdminUser/setUserStatus', 'POST');//冻结或者注销用户
    Route::rule('thawUserStatus', 'api.JxAdminUser/thawUserStatus', 'POST');//解冻用户

    Route::rule('orderList', 'api.JxAdminUser/orderList', 'POST');//订单列表
    Route::rule('getUserBrokerageChange', 'api.JxAdminUser/getUserBrokerageChange', 'POST');//用户返佣记录
    Route::rule('getUserBalanceChange', 'api.JxAdminUser/getUserBalanceChange', 'POST');//用户返佣记录
    Route::rule('getReturnUserInfo', 'api.JxAdminUser/getReturnUserInfo', 'POST');//获取返佣用的详细信息
   

    //用户管理end
    //************************平台端end****************************************/
    //**************************教练端****************************************/
    Route::rule('coachLogin', 'api.JxCoach/login', 'POST');//想成为教练列表
    Route::rule('getCoachPhoneCode', 'api.JxCoach/getPhoneCode', 'POST');//想成为教练列表
    Route::rule('getjlCoachAgreement', 'api.JxCoach/getCoachAgreement', 'POST');//教练服务协议
    Route::rule('selectSchool', 'api.JxCoach/selectSchool', 'POST');//选择驾校
    Route::rule('selectSchoolState', 'api.JxCoach/selectSchoolState', 'POST');//选择驾校场地
    Route::rule('perfectCoach', 'api.JxCoach/perfectCoach', 'POST');//完善教练资料
    Route::rule('coachProclamationList', 'api.JxCoach/coachProclamationList', 'POST');//公告列表
    Route::rule('coachProclamationDetail', 'api.JxCoach/coachProclamationDetail', 'POST');//公告详情
    Route::rule('getJiakaoTypeName', 'api.JxCoach/getJiakaoTypeName', 'POST');//获取驾考类型
    Route::rule('releaseCar', 'api.JxCoach/releaseCar', 'POST');//发布二手车
    Route::rule('CarDetail', 'api.JxCoach/CarDetail', 'POST');//二手车详情
    Route::rule('setUpperStatus', 'api.JxCoach/setUpperStatus', 'POST');//二手车上下架

    //**************************教练端end****************************************/

})->middleware([app\middleware\ApiResponse::class,app\middleware\Cors::class]);
